let inputs = document.querySelectorAll('.box .bottom input')
let but = document.querySelector(' .box .bottom button')
but.onclick = () => {
    if (inputs[0].value &&
        inputs[1].value &&
        inputs[2].value) {
            axios.post('/user/enroll', { phone: inputs[0].value, pass: inputs[1].value}).then((res) => {
                alert(res.data.msg)
                location.href = '../login.html'
            })
    } else {
        alert('请输入完整信息')
    }
}